package config;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

import cn.sylinx.common.ext.log.GLog;

public class ConfigReader {

	public static Properties read(String path) {

		Properties p = new Properties();

		try {
			p.load(ConfigReader.class.getResourceAsStream(path));

		} catch (IOException e) {
			GLog.error("error occured: ", e);
		}
		return p;
	}

	public static InputStream readInputStream(String path) {

		return ConfigReader.class.getResourceAsStream(path);
	}
}
